﻿<UserControl
    x:Class="EString.EditorExtensions.Extenders.RGBEditor"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:EString.EditorExtensions.Extenders"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="243.896"
    d:DesignWidth="515.866" Width="500" Height="244" VerticalAlignment="Top">
	<UserControl.Resources>
		<Style x:Key="TextBlockStyle1" TargetType="TextBlock">
			<Setter Property="FontFamily" Value="Segoe UI Light"/>
			<Setter Property="FontSize" Value="29.333"/>
			<Setter Property="Margin" Value="0,13,0,0"/>
			<Setter Property="Foreground" Value="#FFFF8B00"/>
			<Setter Property="VerticalAlignment" Value="Center"/>
			<Setter Property="HorizontalAlignment" Value="Center"/>
		</Style>
	</UserControl.Resources>
    
    <Border BorderThickness="10" CornerRadius="8">
        <Border.Background>
            <ImageBrush ImageSource="../../Images/texture1.jpg" Stretch="UniformToFill" Opacity="0.13">
            	<ImageBrush.RelativeTransform>
            		<CompositeTransform CenterY="0.5" CenterX="0.5" ScaleY="1.025" ScaleX="1.004" TranslateX="0.001" TranslateY="0.013"/>
            	</ImageBrush.RelativeTransform>
            </ImageBrush>
        </Border.Background>
        <Border.BorderBrush>
    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    			<GradientStop Color="#A8232323"/>
    			<GradientStop Color="#D20C0C0C" Offset="1"/>
    		</LinearGradientBrush>
    	</Border.BorderBrush>
    
		<Border Margin="-5" BorderBrush="#FF122C49" BorderThickness="0,0,0.8,0.8" CornerRadius="7">
			<Border.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<LinearGradientBrush.RelativeTransform>
						<CompositeTransform CenterY="0.5" CenterX="0.5" Rotation="-31.741" ScaleY="1.554" TranslateX="-0.003" TranslateY="-0.005"/>
					</LinearGradientBrush.RelativeTransform>
					<GradientStop Color="#07FFFFFF"/>
					<GradientStop Color="#1CA2A2A2" Offset="0.296"/>
					<GradientStop Color="#28747474" Offset="0.453"/>
					<GradientStop Color="#2B4D4D4D" Offset="0.618"/>
					<GradientStop Color="#2D323232" Offset="0.76"/>
					<GradientStop Color="#132B2B2B" Offset="0.917"/>
					<GradientStop Color="#1F000000" Offset="0.994"/>
				</LinearGradientBrush>
			</Border.Background>
    
    		<Grid Margin="47.566,35,47.434,26">
    			<Grid.RowDefinitions>
    				<RowDefinition/>
    				<RowDefinition Height="Auto"/>
    			</Grid.RowDefinitions>
    			<Grid.ColumnDefinitions>
    				<ColumnDefinition/>
    				<ColumnDefinition/>
    				<ColumnDefinition/>
    				<ColumnDefinition/>
    			</Grid.ColumnDefinitions>
    			<Slider x:ConnectionId='1' x:Name="sliderA" HorizontalAlignment="Center" Orientation="Vertical" Maximum="255"                                    />
    			<Slider x:ConnectionId='2' x:Name="sliderR" HorizontalAlignment="Center" Orientation="Vertical" Grid.Column="1" Maximum="255"                                    />
    			<Slider x:ConnectionId='3' x:Name="sliderG" HorizontalAlignment="Center" Orientation="Vertical" Grid.Column="2" Maximum="255"                                    />
    			<Slider x:ConnectionId='4' x:Name="sliderB" HorizontalAlignment="Center" Orientation="Vertical" Grid.Column="3" Maximum="255"                                    />
    			<TextBlock TextWrapping="Wrap" Grid.Row="1" Text="A" Style="{StaticResource TextBlockStyle1}"/>
    			<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Bottom" Grid.Row="1" Text="R" Style="{StaticResource TextBlockStyle1}" Grid.Column="1"/>
    			<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Bottom" Grid.Row="1" Text="G" Style="{StaticResource TextBlockStyle1}" Grid.Column="2"/>
    			<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Bottom" Grid.Row="1" Text="B" Style="{StaticResource TextBlockStyle1}" Grid.Column="3"/>
    		</Grid>
    	</Border>
	</Border>
</UserControl>

